package cn.gbase.jiangsu.data.transfer.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.View;

/**
 * 供货商与小区的关联表.
 * 
 */
@Table("supplier_to_community")
@View("supplier_to_community_view")
public class SupplierToCommunity extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 供货商ID.
	 */
	@Column("supplier_id")
	private int supplierId;

	/**
	 * 小区ID.
	 */
	@Column("community_id")
	private int communityId;
	
	/**
	 * 周几配送的字符串，如0010001.
	 */
	@Column("week_str")
	private String weekStr;

	/**
	 * 供货商名称.
	 */
	@Column("supplier_name")
	@Readonly
	private String supplierName;

	/**
	 * 小区名称.
	 */
	@Column("community_name")
	@Readonly
	private String communityName;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(int supplierId) {
		this.supplierId = supplierId;
	}

	public int getCommunityId() {
		return communityId;
	}

	public void setCommunityId(int communityId) {
		this.communityId = communityId;
	}

	public String getWeekStr() {
		return weekStr;
	}

	public void setWeekStr(String weekStr) {
		this.weekStr = weekStr;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

}
